package com.leoandroid.tool.toolsbox.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;

import androidx.annotation.NonNull;

import com.leoandroid.tool.toolsbox.largeread.R;

public class LoadingDialog extends Dialog {

    private boolean cancelable = false;

    private Context context;

    public LoadingDialog(@NonNull Context context, int i) {
        super(context, i);
        this.context = context;
    }

    public LoadingDialog(@NonNull Context context, int i, boolean z) {
        super(context, i);
        this.context = context;
        this.cancelable = z;
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.loading_dialog);
        setCanceledOnTouchOutside(cancelable);
    }
}
